Fixes in chat system.