Fixed NPE  with structures enabled.