fix return value with invalid radix character