Fixed bug in Pandas selection.