fix __getitem__ consistency issue