Fix pages range calculation and version bump