Fixed bug in monitor