fixed the erro in TextUI file