fixed error in grabmodels