fixes set_array and set_hash