Fixed chat.ts
Fixed console.ts