Clicking buttons

When I click a button in a scene and it changes to a different scene, if the mouse is on another button in that scene it will instantly click it. How do I fix this?

Replace “left mouse button is pressed” by “left mouse button is released”.