fix bug in change_order