Fixed resizing bug for the dynamic HUD