fixed crashes in gc of struct object.