Spacing Issues

I am having some trouble with spacing in measure 9. I have tried everything I could think of to fix the situation, but the grace notes still don’t seem to line up correctly. I have linked a photo. This is not the first time Dorico has done some strange spacing regarding grace notes, but this time I can’t seem to fix it. Thank you for any tips!
Screenshot (2).png

Welcome to the forum, amdg2190. The problem is that you have those dynamics attached to the grace notes, rather than to the main rhythmic notes. Cut the dynamics to the clipboard, then select the main rhythmic note and paste them back in. If you then want the dynamics to be positioned such that it looks as if they should start on the grace note, nudge them leftwards in Engrave mode.