Corrects the bug of multiple clicks on menu links.