Fixing issue with page counts;