corrected deleteGroupFlag issue