# Hyperref: Both Bibliography and Index entries in ToC are linked to Bibliography [duplicate]

## Problem Statement

I use BibTeX for the Bibliography, makeindex for the Index and hyperref to create the hyperlinks.

In the .pdf file that I get after compiling, all hyperlinks (e.g., ToC entries, page references in the Index, citations of Bibliography entries,...) work, except for the Index entry in the ToC, which instead points to the Bibliography (the Bibliography ToC entry also links to the Bibliography).

## How to reproduce the problem

Here is my example.tex file, reduced to a MWE:

\documentclass[a4paper]{book}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{lipsum}
\usepackage{makeidx}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage{hyperref}

\makeindex

\begin{document}

\bibliographystyle{unsrt}
%\nocite{*}

\frontmatter

\title{Title}
\author{Author}
\date{}
\maketitle

\tableofcontents

\mainmatter

\chapter{First chapter}
\section{First section\index{section}}
\lipsum[1-2]
\section{Second section}
\lipsum[1-2]

Cite-example\cite{ref1}

\backmatter

\bibliography{biblio.bib}

\printindex

\end{document}


and my biblio.bib file:

@book{ref1,
author = "Author",
title  = "Title",
year   = 1490
}


Finally, here is the routine I use in compiling (I am running TeXLive in GNU/Linux Fedora20):

pdflatex example.tex
makeindex example.idx
bibtex example.aux
pdflatex example.tex
pdflatex example.tex


What am I doing wrong?