added more checks to custom hud loading