Fix problem unwanted_effects.to_s which consumed all memory