fixes #284
Merge pull request #314 from IIIF/bug-fixes

fixes #284