cc.php inf loop fix