fix to html tree