Pages amount fix