fixed issue with download file existing when deleting