restoring corrupted key file