Correct bug with second update attempt in create_or_update