Fix imports in spawn