fixes bug when no model was found