Fix hints with negative numbers and denominator of 1