Fixes issue with updating unique attribute.