Fix activity page numbers wrapping

[#77488018]