Fix core data subclass instantiating issue