fix race issue with multiple concurrent downloads
0.1.7