One more fix for ttys generator. It works.