The simple bar with pegs requires a minimum length workpiece and rather small width. The one you made does not have those limitations
.