Fixed some bugs with order cancelling.