More bug fix client undefined on exit chat room