fixed VT.Write returning EOF error on each call