Fix for nested resources.