ensure changed attributes in attributes