Fix an error in the last commit for chat