bug fix on miner

bug fix for miner