more fixes to placeOrder