fixes #303
Merge pull request #312 from IIIF/bug-fixes

fixes #303