Fixed issue with PageMaxIndex calculation where it was not rounding down and should always; fixes SourceForge bug #38