Fixed the pages weighting system.
Merge pull request #1 from travist/master

Fixing the pages weighting system.