fixed a click bug