Fixed file check error in cartesian.php file.