ttyplay fix