corrected printing of all fractions