fix check for previously running miner