Fix for auto-detect metadata tool running second set metadata call.