Fix bugs in HtmlHelperExtensionMethods