Fix bug download directly error.
Many small changes