Fixing chat class.