Several current and former Google employees say the company’s human resources department would often suggest mental health counseling or leave in response to complaints about racist or sexist behavior in the workplace, NBC News reported.

The workers described encounters with coworkers that included racist comments about skin color and hairstyles, as well as sexual harassment. When they contacted Google’s human resources department, each was encouraged to take mental health leave, even when their complaints were unrelated to mental health concerns, according to NBC.

The report follows the December firing of Google AI ethics researcher Timnit Gebru, who refused a manager’s request to retract a paper that described the dangers of language models like the ones Google relies on to power its search engine. Gebru wrote an email to the Brain Women and Allies listserv describing her frustration over the paper, and mentioned her doubts about Google’s commitments to diversity and inclusion. She says Google told her the email was “inconsistent with the expectations of a Google manager.” Google’s head of AI claimed Gebru resigned, which she has vehemently disputed.

And April Christina Curley, a Black woman who worked as a diversity recruiter for Google, said she was fired in September after being denied promotions and having her pay cut, despite her strong work performance and her successful recruitment of hundreds of students from historically Black colleges and universities to Google’s engineering department. Curley told NBC she was also encouraged to take mental health leave.

Google did not immediately reply to a request for comment Sunday, but a spokeswoman told NBC News that “all concerns reported to us are investigated rigorously, and we take firm action against employees who violate our policies.”

Premium black unisex t shirt.