Fix a bug with chat.