fix nested many to many resource URL's