How to prevent double hit

thx for your help BTW. I was wondering if you could take a quick look at another problem: