diff --git a/km3buu/cmd.py b/km3buu/cmd.py
index 917cbe7f8543f4d4622cb995623e3962c1455a13..5509d91d6f10cca6d69ae02382cc2d129d8353af 100755
--- a/km3buu/cmd.py
+++ b/km3buu/cmd.py
@@ -227,9 +227,9 @@ def main():
     elif args.geometry == 'can':
         kwargs = {"detector_center": tuple(args.center), "zenith": args.zenith}
         if args.dimensions:
-            kwargs["radius"] = args.dimensions[0]
-            kwargs["zmin"] = args.dimensions[1]
-            kwargs["zmax"] = args.dimensions[2]
+            kwargs["zmin"] = args.dimensions[0]
+            kwargs["zmax"] = args.dimensions[1]
+            kwargs["radius"] = args.dimensions[2]
         volume = CanVolume(**kwargs)
     run_descriptor = ""
     if args.runnumber: