external id bug