Fixing download cgi