Bugfix

[FIXED] buffer flush bug
[FIXED] Process status detect bug