fix some heavy problem for chat

I'm sure @psykar did some modify and introduces some heavy bugs on chat Source.

so, I tested and fixed, yet.