Fixed crash when no file to download