Fix parsing with no fractional part