Click button only works if I click anywhere else after

When I press a button I want it to change my mouse cursor so I put this:

I click the button but it doesnt change. I then click anywhere on the ground and my mouse cursor changes! Why must I have to click twice for the cursor to change ?