bug fixes to download manager