Fixed bug where monitor was called too often