fixing some error into singleDownload.cpp