Fix bug when download completed