fix non-hierarchical selection, fixes #1