fixed subgroup getting deleted when download button is clicked