fix StringIO version issue