Fix #52: segfault while downloading many files at the same time