I'm having a little problem with my table of contents; for some reason there is this "Contents" appearing out of nowhere at the very end of my table of contents. For example:
% ********************************
Chapter 1. Introduction 1
|
|
|
Chapter 7. Appendix 51
Bibliography 81
Contents <- WHAT IS THIS DOING HERE?
% ********************************
BTW: This happens only when using the amsbook documentclass. I create the table of contents with the command \tableofcontents
I'm using the documentclass amsbook, and I'm compiling with the latex command under linux.
[ If I enter latex in the terminal this shows up: This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) ]
Any help is appreciated

Dont know if this is of any help, but here are my declerations and package inclusions
\documentclass[11pt, a4paper]{amsbook}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[agsm]{harvard}
\usepackage{url}
\usepackage{amsmath}
\usepackage[parfill]{parskip}
\usepackage[dvips]{graphicx}
\usepackage{listings}
\usepackage{amsfonts}
\usepackage{hyperref}
\usepackage{amsthm}
\usepackage{subfigure}
\small
\lstset{language=c++}
\lstset{commentstyle=\tiny}
\lstset{tabsize=2}
\lstset{breaklines=true}
\lstset{showstringspaces=false}
\newtheoremstyle{custom}{10pt}{10pt}{\itshape}{}{\bfseries}{.}{.5em}{}
\theoremstyle{custom}
\newtheorem{definition}{Definition}
\DeclareMathOperator{\argmax}{argmax}
\DeclareMathOperator{\argmin}{argmin}
\begin{document}
\frontmatter
\chapter*{Abstract}
\chapter*{Acknowledgments}
\tableofcontents
\end{document}