corrected bug in overlay 

the overlay method wasn't iterating on the correct range.
Merge pull request #42 from gwenzek/patch-1

corrected bug in overlay