backup and restore fixed