Added the missing main variable in CCIndex.php