Fix for rapid clicks on button