fix folder creation bug