Fuctions.php fix x2