Fix SO crash on instantiate from UI