Fixed bug where changedAttrs was expected to be an object but was returned as string