The social media platform X has made a change to its AI chatbot after five secretaries of state warned it was spreading election misinformation.

Top election officials from Michigan, Minnesota, New Mexico, Pennsylvania and Washington sent a letter this month to Elon Musk complaining that the platform’s AI chatbot, Grok, produced false information about state ballot deadlines shortly after President Joe Biden dropped out of the 2024 presidential race.

The secretaries of state requested that the chatbot instead direct users who ask election-related questions to CanIVote.org, a voting information website run by the National Association of Secretaries of State.

Before listing responses to election-related questions, the chatbot now says, “For accurate and up-to-date information about the 2024 U.S. Elections, please visit Vote.gov.”