Fix on continuous fractions problem