Fixing the pages weighting system.