Fixed bug in Miner class