[Bug 551721] topmost package appears to remain selected when a pattern is deselected