bugfix for pseudo terminal size