Fix a bug on collapse when selection wasn't being moved

When we collapse server groups, and a child is selected, the
expected behavior is the selection is removed from the children
and added to the parent. This wasn't happening due to a reused
variable name.