fixe bug on pagination