fix #3177. was due to a missing gc root.