it happens in multple pleaces o nthe page.
do a search for:
$ATC_RedirectAfter
it should hightlight that code the first place it is found.
the line directly blow it should be the same, on that second line change:
$ATC_RedirectAfter
to:
$ATC_RedirectIfIn
do a search for the next instance and so on.