Fix errors when load raw html. Close #24