If the problem still persists after checking out what @MarcLarcher has mentioned, post the project here. To be able to potentially give a good answer (without guessing, as this is a feature which I do not use), I would need to see the score. If you’re concerned about copyright, confidentiality, etc., delete all the notes (or replace them with basically any old rubbish) and any other information which you prefer not to share, but leave the structure intact including the barlines. Don’t forget to indicate where the problem occurs so that I know where to look - maybe some staff-attached text at the relevant location.
Edit: corrected the spelling of Marc’s name