added restart download when error occurs