minor fix for potential flaw in getNumberType() impl