fix private checkbox issue when adding a link