fix a bug with download