Properly revert FormatSpec changes on "cancel"