MADRID (AP) Real Madrid needed an own-goal and late penalty to beat Valladolid 2-0 Saturday and end its slump in the Spanish league as interim coach Santiago Solari made his home debut.

Substitute Vinicius Junior's off-target shot took a deflection off defender Kiko Olivas in the 83rd minute and caught goalkeeper Jordi Masip out of position. Masip touched the ball but couldn't keep it from going in.

Sergio Ramos added a second goal from the penalty spot in the 88th after Karim Benzema was fouled by Fernando Calero.

Solari was named Madrid's caretaker coach on Monday, when predecessor Julen Lopetegui was fired a day after a 5-1 loss at Barcelona. Madrid won 4-0 at third-division Melilla in the Copa del Rey in Solari's debut on Wednesday.