Fixed bad condition when not specify the number of bytes to download.