fixed bug with nested resources