Fix crash when spawning from static rubies.