fix NPE when no monitors are defined