fix backup_dir bug