diff --git a/src/html/html_cli.rs b/src/html/html_cli.rs
index 19e6eaed..5c07812c 100644
--- a/src/html/html_cli.rs
+++ b/src/html/html_cli.rs
@@ -217,8 +217,8 @@ fn parse_register(
let idxs = format!("[{idx}]");
f.name = f.name.replace("[%s]", &idxs).replace("%s", &idxs);
f.bit_range = BitRange::from_offset_width(
- f.bit_offset(),
- f.bit_width() + (i as u32) * d.dim_increment,
+ f.bit_offset() + (i as u32) * d.dim_increment,
+ f.bit_width(),
);
f.description = f
.description