fix offline recovery issue