mvc engine get model instance bug fix