Fixed chat functions