Do not loose references when calling at_download script