fix bugs and fix paginate fragment cach