fixed bugs in CreateRecoveryData