Merge pull request #96 from npoulallion/master

Error in indices
corrected a bug