fix folder-only import bug