fix bug for recreating order