Fixed initialization bug in monitor