Fixed parsing of numeric values