more bounds-shifting
Merge pull request #30 from adobe-research/jh/bugfix

more bounds-shifting