fix classes empty bug

fix classes empty bug