Attach interrupt query

I have changed the code to

And? Now it works?