diff --git a/lib/risky/secondary_indexes.rb b/lib/risky/secondary_indexes.rb
index <HASH>..<HASH> 100644
--- a/lib/risky/secondary_indexes.rb
+++ b/lib/risky/secondary_indexes.rb
@@ -69,6 +69,8 @@ module Risky::SecondaryIndexes
     end
 
     def paginate_keys_by_index(index2i, value, opts = {})
+      opts.reject! { |k, v| v.nil? }
+
       index = "#{index2i}_#{indexes2i[index2i.to_s][:type]}"
       bucket.get_index(index, value, opts)
     end
Don't send nil options to riak-client