Fixed the trade controller