Fixed bugs in the off screen garbage collector