segtree fix