Pyes indexing problem