Fix bug to create order