fix a bug for download check