fixed if pid file exists