Update toc contents line for bibliography
In my setup the page numbering for Bibliography uses the page number at the position of \addcontentsline{toc}{chapter}{Bibliography}
. I moved this line before the \bibliography
command to fix the page numbering in the Table of Contents.