fix to bug when adding delete ttys lines