Fixed error in model base class