fix pagination back link errors