fix for the fix (only use the global variable as a backup for JSON files)