Fix broken calendar pagination in Firefox