Fixed some errors in Chat(Now working properly)