fix null-object exeption on TabStack.free()