Fix monitor segfault.