fix backup and restore.