fixed nextMonitor command