fix HTML bugs