Fixed the miner bugs with the TFAR integration