About Template( Retaining Wall-Ditch)

Hello, i prepare a template with ditch and retaining wall. When i test it, the end of ditch extends. How can i keep the end of ditch fixed and let the retaining wall extend ? i guess it is about end condition being infinite but since both ditch and retaining wall have infinite end conditions, i guess ditch is dominating retaining wall's ?