Merge pull request #124 from ndawe/master

[MRG] fix #123: selection is not respected when branches contains a formula