Fix asynchronous download of XML