fix some error of paginations