fix some html export issues