fixed htmlentities problem