Fixed building outgoing references