Fix fraction parsing