Pitcher Sean Kane was roughed up for three runs in 3.2 innings, but the Terps came back to win.

Trailing by five runs in the bottom of the sixth inning, it seemed as if the Terrapin baseball team was headed for a loss to a weaker Maryland, Baltimore County team.

Then the Terps’ bats woke up.

Highlighted by a game-tying, bases-clearing double from junior third baseman Jason Von Behren, the Terps reeled off seven unanswered runs over the next three innings to defeat UMBC, 8-6, at Shipley Field yesterday.

With the team down 6-3 in the bottom of the seventh, the Terps (12-14) loaded the bases on two singles and a hit-batsman before Von Behren stepped up to the plate. He roped UMBC pitcher Blake Phipps’ offering off the leftfield wall to clear the bases and tie the game.

“I was just looking for something inner-half,” Von Behren said of the three-run double. “He left something elevated, and I got a pretty good swing at it.”

The way the Terps won had even more significance considering the team had lost eight of its last nine games — including being swept by Clemson this past weekend.

The Terps committed four errors and left 11 men on base — nine of which were in scoring position.

“That’s just something that we need to play through,” coach Terry Rupp said. “We just make mistakes in some situations where we should be picking up the ball. But I’m confident that as we keep playing those things will work themselves out.”

Up until the sixth inning, the Terps’ hitting was relatively quiet. The team recorded only one extra-base hit and could not drive in runners in scoring position. In four of the first five innings, a Terp leadoff hitter found his way on base but was stranded.

“We just weren’t really swinging it very good,” senior second baseman Elliot Singletary said. “And then I don’t know what happened. All of the sudden we just got the urge to come out and win a game.”

Singletary had three hits in five at-bats in the game and was responsible for the beginning and end of the comeback.

With two outs and two men on base in the bottom of the sixth, Singletary smacked a double off the left field wall to cut the deficit to 6-3.

Then, with the game tied at six in the eighth inning, Singletary led off with a single up the middle. He advanced to second on a balk and then to third on a sacrifice bunt by shortstop Dan Melvin. On the bunt, however, UMBC first baseman Kyle Wildasin attempted to throw out Singletary at third rather than record the easy out at first. Singletary slid in safe using a head-first slide to avoid the tag. He then scored on a passed ball to put the Terps ahead for good.

“We definitely needed this game,” Singletary said. “We needed that big time.”

Freshman pitcher Brett Cecil made his first career start for the Terps. Before yesterday, he had made seven appearances out of the bullpen. Cecil gave up one hit, one walk and struck out two in two scoreless innings pitched. According to Rupp, Cecil was placed on a pitch count in order to save him for upcoming games.

Senior Justin Hulse was credited with the win. He pitched one and two-thirds scoreless innings, while striking out two.

Hulse came into the game in the eighth inning after a Terp error left UMBC leftfielder Joe Fowler on second base with one out. He quickly got the next two batters out to end the inning and easily got the final three outs in the ninth inning.

TERP NOTES: Rightfielder Truan Mehl used an eighth-inning hit to extend his hit streak to a team-high 12 games. … The Terps have made 64 errors this season, most in the ACC.