Fixed a bad mistake in HUD code