Fix paging when loading rules