Fixed error when places an order.