fixed error when downloading output