Fixed rounding error in TextGraphHelper