Fixed bug in TOCActivate (fixes #183)