Fixing html typing issues