Fix bug in child monitor.