correct errors from chat html