Fixed a bug in the backup script