Fixed bug where offset could elicit none.get error