fix html view handling bug