avoid nullpointer while monitors are not ported