Fix external url bug