Fixes check for changes of attributes