fix some html bugs