Fix error when monitor is not present any more