fix bug it can't work pagination