fixed pagination bug in viewfolder