sin segments fix #2