Fix total pages amount