Fix StateMonitor for standalone.