bugfix: use correct functions for delete sub-order