fix error route
fix the paginate of Sequel