Possible fix for NPE when generating hud data