fixing a couple things with core pagination