Fix broken "getPageParams" method