fix for invalid backup file