Tn3270 fixes