fixed a bug in the html class