fix bugs convert new Class