fixed external url bug