Fix issue in paginate dependencies