fix the fraction problem