Jordan Shepherd scored 10 of his 15 points for Cal in the second half and the Golden Bears hung on Wednesday night to beat Oregon State 63-61 and snap a 10-game losing streak.

Cal (10-15, 3-11 Pac-12) was down by two points with 1:54 to play in the game, but scored the game’s final four points and was able to hold the Beavers (3-18, 1-10 Pac-12) without a made shot from the field for the final 5:16 of the game. Cal only led for 8 minutes and change on the evening, but it was Oregon State’s cold-shooting from the field that tipped the scales near the end.

Beaver guard Jarod Lucas missed a 3-pointer with two seconds left and forward Maurice Calloo missed a putback for the Beavers, who have now lost eight straight. Oregon State’s biggest lead in the game was six points, Cal never led by more than four as neither team shot the ball particularly well—Oregon State at 38%, Cal at 37%.

Calloo had a game-high 18 points (6-16 FG, 2-7 3P) to lead Oregon State. Lucas added 12 thanks to a perfect 7-for-7 showing from the free throw line while forward Glenn Taylor Jr. pitched in 11 points and five boards.

Cal forward Grant Anticevich had 13 points and eight boards as the only other Bear in double-figures scoring. He provided the only threat from beyond the arc for the Bears, who shot just 6-of-23 from 3. Anticevich made three of his 10 triples. Guard Joel Brown did a little of everything, flirting with a triple-double thanks to a nine-point, nine-rebound, seven-assist performance. He also added three steals.

Cal will remain in Oregon to play the Ducks on Saturday at 1 p.m. PT. Oregon State will host Stanford on Saturday at 7:30 p.m. PT.