solving duplicated order ID issue