Fixed a bug in setting externalUrl