put cursor back to pointer for toc elements