Fixed crash related to data model.