fixed htmlentities errors