FIxed a problem with order model error checking