@philips Actually the logic should be 
```
if s.State() == Initialized {
    return
}

if s.log.initialized {
  s.setState(Initialized)
  return
}
```