cleanup for reselecting related items (thx @gfr)