Fixed regexp bug in TOCActivate (fixes #178)