fix bug of downloading same file