Fix errorList count check