Set the proper value when canceling