fixed bug in mtgox code