Fixed bug when selecting a Pandas object with a slice object.