checking to see if pid is currently running Fixes