Some corrections for chat room class.