Fix some html bugs