fix bug with chat