bug fixed when deleting group