Update foreign refs