fix: very end of an inverted segment was ignored when the segment was rendered