Dorico 5 not counting a bar of 5 in the bar numbers

Hi, I have a bar of 5 in my score and for some reason Dorico is not counting it as a new bar in the bar numbers but is repeating bar 37. Any advice on this?

It’s because, when you entered the 5/4, there were only 4 beats left before the 3/4, so Dorico considers the incomplete 5/4 as a pick-up bar.

You can rectify this by adding the missing beat using shift-B 1q.

You can avoid this in the first place by switching on Insert mode before creating the 5/4 so the extra beat will automatically be added.