Fixed print twice issue for fractions of 0