Fixing pagination example code.