fixed wrong click handler