fixed a off-by-one error in fraction