La Liga President Javier Tebas apologized on Wednesday for his online rant at Real Madrid player Vinicius Jr. after the Brazilian took to social media to complain about racist insults he suffered during a match and the Spanish league’s inaction.

Madrid’s game against Valencia on Sunday was halted for 10 minutes as Vinicius pointed out fans who were abusing him before he was involved in an altercation with some of Valencia’s players and sent off.

“Well, it seems that the result has not been very good,” Tebas said in reference to his comments on Twitter, in which he suggested the Brazilian find out more about what the league is doing to combat racism “before you criticize and slander La Liga.”

“I mean, to all those who have understood that this was an error due to the form, due to the time ... I have to apologize,” he said, adding that it was not his intention to attack Vinicius and blaming “the heat of the moment.”

“I apologize to Vinicius and to anyone that understood that I was attacking Vinicius.”

Tebas said he shared the 22-year-old’s frustration over the lack of action to eradicate racism in Spain, and took aim at soccer organizers and Spanish authorities, saying neither were doing enough to clamp down on racism.

He said that he felt “impotent” to tackle racism in soccer, as under Spanish law La Liga can only detect and report racist incidents.

He urged legislative changes so La Liga can have sanctioning powers, such as the closure of stands or the expulsion of club members, in order to be able to fight racism more effectively.

“If we were given those capabilities, we would end this in a matter in months,” Tebas said, blaming a lack of willingness by “those who have the power to impose it.”

Valencia’s south stand will be partially closed for five matches and the club was fined €45,000 ($50,000) due to the incident.

This was the 10th instance of alleged racism against Vinicius that La Liga has reported to prosecutors this season, according to Tebas, who says he has done everything in his power to tackle the issue.

Police detained seven men on Tuesday over separate alleged hate crime incidents against Vinicius.

“I think it’s pretty safe to say that the explosion that happened led to the actions and let’s hope it stays like this,” Tebas said, warning that without more sanctioning powers for his organization, changes would be “more cosmetic than real“.

“If we continue with the status quo, we in LaLiga have our doubts,” he said.