Fix problem with paginate in Elementary