Fix pid page issue
Merge pull request #1003 from martec/fixpageissue

Fixes #1002 : Some issue with typecast int