fixed the place order twice issue