bug fixes to orderbook