added a fix for missing temp key if the miner resets, would cause a key not
found error