solve to_ary bug