fixed some html import bugs