fix bug of download with default argument