Fixed chat indexing error