fixed generic element click bug