fixed findDist function in distributioninfo.php