fix process running check