fixed bug with external urls