fixing a bug with indexing
Merge pull request #35 from lgleasain/1.0

fixing a bug with indexing