Fixed bugs in custom pagination labels