fixed bug where download "finishes" twice