Fix parsing issue for negative numbers