fix for rapid clicking