Fixed numeric detection bug