fix func.php