fixed the backup copying the file onto itself