fixed bug that stopped miner from working