Hopefully fixed a crash in hud editor