Fix parsing infinity numbers