how do I extend this 2nd ending to cover more bars?

I guess something unusual must be happening following this system break. Can you attach the project here, or show some more context by showing the whole width of the system and the start of the following one?

Under normal circumstances there is simply a handle at the right-hand open end of the second ending, which you can then drag rightwards or indeed straight downwards to extend the ending line to following bars. What happens if you select the repeat ending and type Shift+Alt+right arrow? You should find that extends it by a bar with each invocation.