Attempt to fix null pointer exception with structures enabled.