Fix bug in backup