fix double setting the io session