Total stars collected help

I want to have an actor that shows the amount of stars collected in the level selection menu like cut the rope and I tried adding one star to the integer attribute total stars collected but if you complete the level and if you go back and get the same amount of stars again say 3 both times its a total of 6 stars that appears. I don't want it to appear like that
Thanks
Thanks
Comments
I have a variable called progression that tracks if a level is locked, unlocked, star1, start2, star3.
I have that for every single level.
When the game starts, it loads up all those guys into their respective variables.
I track a CurrentLevel Progression that is just one variable that counts stars for the current level.
At level end, I compare is CurrentProgression>1-01Progression (for example). And if it's greater, then i do 1-01Progression=Current Progression.
If not, I keep the current high. Same for score.