Fix a severity handling bug.