Fixed detection of X-ErrorType.