remove null pointer error from TargetMonitor.java