Fixed a bug which terminated downloads which took too much time