Yeah, I've prob played 50 games with this script and it's something that happens to me every once in awhile, hard to pin down, but you said something so it reminded me.
I feel like there is sometimes a delayed click somehow and after I R it will click fast after and cancel it