Incorrect Highscore

Hello, I am currently having a problem with the high score on my game. It is set up like this:
when game.score is greater than game.highscore constrain attribute game.highscore to game.score.
When i play my game it displays the score at the end or when you lose (which is correct). When i go back to the high score on the main page it is less than the score that was displayed at the end of the game. The highscore that is displayed is usually the score from the second to last level.
Any help would be great thanks!
P.S: the highscore does have a save load attribute
when game.score is greater than game.highscore constrain attribute game.highscore to game.score.
When i play my game it displays the score at the end or when you lose (which is correct). When i go back to the high score on the main page it is less than the score that was displayed at the end of the game. The highscore that is displayed is usually the score from the second to last level.
Any help would be great thanks!
P.S: the highscore does have a save load attribute
Comments
after i posted i was previewing the game and found that the highscore problem had to do with bullets killing enemies after the player had died. Since the change score to highscore thing was linked to the actor, after the player died it did not count the last couple points.