Fix critical bugs in MarketMonitor