fixed chatfile