fix for issue 42 https://github.com/sindresorhus/pageres/issues/42