fix some bugs and recreated downloadService
fix bugs