small fix in cancelling order logic