Fixed issue where the previous value did not get set when the user
cancelled