Fixed bug in toc_activate