Fix problems with update when attributes unchanged