fix HTML responses