Fixed bug in MonitorNode.run_query