fix process running check
Merge pull request #1 from leonchen/master

fix process running check