Hi , I did my code to show my ammo by myself and I have the exact same bug as you (it seems the hud takes the Health every time you change screen and distribute the value to every var tile of the hud).
I think too that it is a problem from the software by itself, have you find it?