fix core.php