bugfix for segment sync
Merge branch 'master' of http://github.com/hozn/bafs