fixed some weird things the html beatifier did