[Tex/LaTex] Lyx – Add appendix after bibliography

lyx

How can I insert Appendix after Bibliography ?
If I put the cursor after the last character of the bibliography, then the last line of the bibliography is inside the appendix. If I click return after the last character of the bibliography, then insert the appendix, a new key appears in the appendix, and if I remove it, the appendix disappears.

Thanks,

Edit:
I click on alt+Enter after the bibliography to close it. Then I insert a clear page, insert a new chapter, and start the appendix.
Everything looks OK in Lyx, but in the PDF, I have the title "Bibliography" on top of the pages of the Appendix.
My document class is "book(more font sizes)".

Edit 2: I am using the following preamble (if it has anything to see with the problem):

\usepackage{babel}
\addto\captionsfrench{%
  \renewcommand\tablename{Tableau}
}

\usepackage{color}
\definecolor{hellgelb}{rgb}{1,1,0.85}
\definecolor{colKeys}{rgb}{0,0,1}
\definecolor{colIdentifier}{rgb}{0,0,0}
\definecolor{colComments}{rgb}{1,0,0}
\definecolor{colString}{rgb}{0,0.5,0}
\lstset{%
     language=Matlab,%
     float=hbp,%
     basicstyle=\footnotesize\ttfamily,%
     identifierstyle=\color{colIdentifier},%
     keywordstyle=\color{colKeys},%
     stringstyle=\color{colString},%
     commentstyle=\itshape\color{colComments},%
     columns=fixed,
     tabsize=4,%
     frame=single,%
     framerule=1pt,
     extendedchars=true,%
     showspaces=false,%
     showstringspaces=false,%
     numbers=left,%
     numberstyle=\tiny\ttfamily,%
     numbersep=1em,%
     breaklines=true,%
     breakindent=10pt,%
     backgroundcolor=\color{hellgelb},%
     breakautoindent=true,%
     captionpos=t,%
     xleftmargin=1em,%
     xrightmargin=\fboxsep%
}

Best Answer

If you create bibliography by selecting Bibliography from the drop-down menu, and writing the bibliography manually, you can 'close' this by hitting Alt + Enter when the cursor is at the end of the last entry. Then you can type stuff after the bibliography, and start the appendices.