Fix fraction parsing bug