Fixed crash when download does not work.