fixing download.php