Fix to_a since it is no longer in Ruby 2+