fixed bug in miner