fix for chat's freezing