Fixing the prepare download API.