Fixed bug when unsetting CANCEL_TRANS_FLAG