small bug fix at setDataModel