Fixed miner issues