opentag/closetag fixes