Fix a silly bug with fatal error detection.