Fixed chat problems