fix some bugs in segment
Merge branch 'master' of https://github.com/buptjz/Pixel