fix issue where html and head not being normalized