fix persistent chat bug