Fixed attribute handling

A obj like

```
{ a: 1,
  b: 2,
  link : {
}
}
```