The old code worked most of the time thanks to garbage collector, but obviously it was unreliable/a coincidence.