fix the problem that chat will drift on Chrome