bug in miner would crash the miner