fixed a case where undefined models made it through