Fixed the pages weighting system.