fix a bug in backup.c