Fix BTerminalIOHandler