Fix critical errors.