Table of Contents problem

I'm having a problem with table of contents lines overlapping. It seems to be when I go from a lower level to a higher level. This is colorized by levels so you can see what's happening:

PDF

It works ok with a simpler file:

PDF

Here is my format:

Which changes the indent for each level. Then I have a page number.

Any ideas on what I'm missing? Thank you!