fixed error if changing data properties