Fixed bug with GC logging