fixed a bug where download was also deleting the project