correctly save security group rules