added extra check to see if a derived class is initialized before a base class or interface