sin segments fix #3