I don't think your "duplication prevention" works at all. The code gets the current block (which is still a button), with current meta (which is now pressed), makes it un-pressed and queues that, no matter what happens.