Fixed resource nesting.