Ensured all page offsets are integers (fixes #291)