removed unneeded setcounter
fixed pointers in PDF TOC