fix routing of nested resources