Minor fix when retrieving advanced (generated) objects from
relationships.