fix issue in public subclass