bug on pagination plugin