BALTIMORE (AP) — Trevor Plouffe hit a tying single with two outs in the ninth inning and the Minnesota Twins took advantage of two errors in the 12th to beat the Baltimore Orioles 4-3 Sunday for a four-game sweep.

Minnesota manager Paul Molitor was ejected in the ninth for arguing a strikeout by Miguel Sano, who tried to hold back his swing. Plouffe followed with his hit, giving closer Zach Britton his third blown save of the season.

All-Star third baseman Manny Machado moved to shortstop for the first time in his major league career in the 12th and misplayed a grounder by Eduardo Escobar, who slid in safely to second. It was Machado's second error of the game.

Third baseman Jimmy Paredes then could not handle a sharp grounder by Shane Robinson that allowed Escobar to score.

Glen Perkins (2-4), who had been dealing with a bulging disc and hadn't pitched since Aug. 17, picked up the win. Tommy Milone got his first career save.

Brian Matusz (1-3) took the loss.

Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

More From KSOO-AM / ESPN Sioux Falls