Fix Miner Code

Fix Miner code