Fix a bug of recovery file