Fixed deletion of orders