Fix for deselection bug.