Fixed: bug when generatign multiple htmls.