Table of contents pdf

Hello everyone,
I have a problem editing a ToC of my manuscript, because the dots between titles and numbers of pages are not the same quantity in all cases. So, the result is a mess, remaining as folows:

ncbcmnbxmv…3
jhdjgf…6
skjdkjfhdfj…8
cvmncvmn…4

I imagine the solution is something easy and stupid, but I haven’t been able to find it out. Could someone help me?

Thank you in advance!

R

Solved editing the layout assigned to the ToC before compiling. So, is not a problem about linking the titles to make the ToC in the editor, but a simply question of appliying the format at the correspondant layout before compiling.

Rosa