fixed a bug with multiple downloading.