Iterating attribute changes in the wrong order