Heading 4 and 5 don't show up in the table of contents

The evaluating level is set to 10.

Can you upload an extremely reduced example showing the issue for you?
Edit your question and use the tool you get by clicking on the paperclip icon to do so.