fix some of the bugs of STATIC html