fix folder creation issue