Fix collapse moving selection to top of list unexpectedly.