Fix to when model is not defined yet