garbage collector bugfix