Fix miner issues