Title at the bottom of a page


I’m on Mac OS, with Scrivener 2. I am working on a non-fiction book that has subsections. However I am having issues with subsection titles that seem to never “stick” with the text, and find themselves sometimes at the bottom of a page when I compile the whole document.

For compiling, I use “compile as-is” to keep my style and the titles are directly into the text. I have used the function “Keep with next” (selecting the title into the text) but it doesn’t seem to make any difference. I know that this function is normally for scripts, but is there something I’m not doing right?