Fixed bug where multi-market trade paths sometimes had two 'buy' commands in a row.