fix check for running process