fixed rapid click bug