fixed error loading objects from datamodel