refactor & fix some bugs:
 - fix strange befavior package with name 'html'
 - delete trailing double quote
 - etc.