Fix monitor crash.