Fixing class error at chatpanel