fix nested resource namespacing