Fixed parsing of negative integers