fix html compliance bugs