bugfix for UI animation playing crash if GUI JSON file is loaded again.