fix redefinition judge bug with class variable