Fix rapid click bug