Fix survey mode error for Ruby 2.0