Fixed #316

* Removed max values for both numberOfContents and offset
Merge pull request #317 from frmwrk123/fix/316

Fixed #316