fix for page count