Fixing error in conditional logic for the fix-up migration