It sounds like you needed to select the "Generate new bars" when adding the ending. Please check out this tutorial as it explains everything better than I can:

http://www.pgmusic.com/tutorial_repeats.htm

Look at the section on 1st/2nd endings.

HTH,
Ed J.