Fixed bug with changedAttributes.