Updated gem to make paginate work