fixed secgroups assigning