Removed method setDownloadingDialog and fix some errors.