fix some miner issue