fixed class subclass issue