@@ -321,11 +321,12 @@ private Dialect()
                     {
                         string dialectName = (string)dialect;
                         if (dialects.ContainsKey(dialectName))
-                            return dialects[dialectName];
+                            dialect = dialects[dialectName];
                         else
                             throw MakeError("unknown dialect");
                     }
-                    else if (dialect is Dialect &&
+                    
+                    if (dialect is Dialect &&
                         delimiter == null &&
                         doublequote == null &&
                         escapechar == null &&
