fixed html generation.