Fix for updating with duplicate name.