Fix crash on download of external locations