removed concurency bug with garbage collector