Fixed a bug for external AD not to be properly joined

Change-Id: I5ff3d9146b4fbec74d8d65de84d7ab61d869725c