Fixed cancel error

rearranged a few lines to fix the error of requesting a signature when
cancelling.