Bug fixed. Garbage collector properly working now