fix miner.cpp