trouble with lives

hey guys, so I am having trouble with the lives attribute. I have it set up so that when touch is pressed, change game.lives to game.lives-1. that works fine. then I have a rule that when lives =0 change scene to lose screen, that also works. the trouble is that after the lives are gone I need to press touch once more to change the lives to 0 and change to the lose screen. I want to make it so that the lose screen comes on when lives equals 0 without having to press touch an extra time. any ideas? Thanks.
SM
SM
Comments
*(you may want to wrap this with a timer, like when touch is pressed, timer: after 0.1 seconds, change game.lives to game.lives -1) Experiment with different options.
Then in another actor on screen, place a separate rule that says: If game.lives < or = to 0, change scene to "lose scene"
When the player starts over, or goes to the next scene, make sure you reset the game.lives attribute to whatever you initially set it to.
Also, use the display text attribute to track and make sure the lives are being subtracted above, that way when it hits zero, and it doesn't change scenes, you know there's something off with your rules.