Why does my enemy leave the NavMesh?

It worked! Thank you so much for pointing me in the right direction!