Fix some bugs with hud and add background.