fixed the recovery failure issue