fixing bugs in miner stats