diff --git a/genprog/main.go b/genprog/main.go
index <HASH>..<HASH> 100644
--- a/genprog/main.go
+++ b/genprog/main.go
@@ -236,7 +236,7 @@ func GenVecLen(m int) (s string) {
 		}
 		s += ")))\n}\n\n"
 	} else {
-		s += fmt.Sprintf("func (v1 %s) Len() float32 {\n\treturn float32(math.Hypot(float64(v1[0]), float64(v1[1])))\n}\n\n", VecName())
+		s += fmt.Sprintf("func (v1 %s) Len() float32 {\n\treturn float32(math.Hypot(float64(v1[0]), float64(v1[1])))\n}\n\n", VecName(m))
 	}
 	return s
 }
Fixed typo; made normalize use Len in genprog