Fix bug that prevented correct identification of system error numbers.