fix null pointer exception when cancelling buncha orders