[BUGFIX] Page detection fails in edge cases
Merge pull request #568 from cedricziel/dFix

[BUGFIX] Page detection fails in edge cases