pagination bug fixed