fixed miner bug