Fix crash in profiler gui.