Solved deferred instantiation issue on nested subclass