fix control threads, lose some data while downloading.