fix bugs of backup.py, it works