Save changes before switch to fix WILDCARD bug.