fix error when the miner api response is invalid