Fix toc helper. Fix #676