Fix bug with secgroups rules

Bug fixed when a secgroups rules already exists bug
the excetpions catched is wierd so this needs to be
more investigate...