fixed error on paginate.rb