Fixed bug in backup script