Internet giant Google issued two apologies on Thursday after reports that a photo app identified some black people as “gorillas” and for a role-playing game that included Nazi concentration camps.

Google apologized for the app after reports surfaced that an automatic image-recognition feature in its Photos application was identifying images of some black people as “gorillas.”

A New York man posted a picture of himself and a female friend on Twitter earlier this week, showing that the Google image software had tagged both of them as “gorillas,” which is sometimes used as a racial slur.

Google says it’s “appalled and genuinely sorry” for what happened with the image-recognition feature. It says it’s taking immediate action to stop those kinds of results from appearing again.

An apology was issued earlier Thursday by a Google subsidiary for making Nazi concentration camps part of a mobile role-playing game.

Niantic Labs says players of ‘Ingress’ can propose historic location and monuments for inclusion in the game, in which two factions use smartphones to battle for control of these sites. The German weekly Die Zeit reported Thursday some of the sites, known as “portals,” were located within concentration camps such as Dachau and Sachsenhausen.

Gabriele Hammermann, director of the memorial site at Dachau, told the dpa news agency that Google’s actions were a humiliation for victims and relatives of the Nazi camps.

In a statement to The Associated Press, Niantic Labs’ founder John Hanke said the company has begun removing the offending sites from the game. He said “we apologize that this has happened.”