fix'ed fromhtml method