While lawmakers debated a proposal to rename a building after the late Sen. John McCain, Google Maps displayed "McCain Senate Office Building" on its website for several hours Wednesday.

A search for "Russell Senate Office Building" directed users to the same building. The error was fixed later Wednesday.

Senate Minority Leader Chuck Schumer, D-N.Y., proposed renaming the Russell building in McCain's honor after the Arizona Republican died Saturday from brain cancer. Senate Majority Leader Mitch McConnell, R-Ky., said he'll form a bipartisan panel to solicit ideas on ways to honor McCain.

Google said in a statement Wednesday that it empowers people to contribute local knowledge to its maps, "but we recognize that there may be occasional inaccuracies or premature changes suggested by users."

It was not clear how the error occurred.

The mix-up comes as President Donald Trump has charged Google and other U.S. tech companies of bias and unequal treatment, including rigging search results "so that almost all stories & news is BAD." On Wednesday, Trump tweeted a video that accused Google of promoting former President Barack Obama's State of the Union addresses on its home page, but not his.

"#StopTheBias," Trump tweeted.

Lawmakers are debating a proposal to rename the Russell Senate office building after the late Sen. John McCain, but Google Maps was already displaying it on Wednesday as "McCain Senate Office Building." (Google Maps via AP)

A Google spokesperson disputed the allegation, saying Google's homepage did highlight the livestream of Trump's State of the Union on Jan. 30, 2018. They added that the company has "historically not promoted the first address to Congress by a new President, which is technically not a State of the Union address" and didn't do so in either 2009 or 2017.

The promotion does not appear in screenshots captured by Wayback Machine, an Internet archive site, throughout the day on Jan. 30. But Google provided a link to a Trump-focused Reddit page that features an image of the Google homepage advertising the speech with the words: "Live! Watch President Trump's State of the Union Address on YouTube."