fix backup restore operation, closes #81