fix a serious bug about downloading