fix the bug when download failed