small fix on click handler