Removed GLOBAL_REMOVE_IF_UNREFENRENCED because it will cause compiler failure.