to fix segment drift