It wasn’t easy, but somehow the University at Buffalo men’s basketball team managed to lose a game Saturday afternoon which it led by seven points with 45 seconds to play in regulation.

Manhattan took the Bulls to overtime with a last-minute rally and scored an 84-81 victory at Barclays Center in Brooklyn. It was the seventh victory in a row for the Jaspers (8-3).

In a game that saw 12 ties and 17 lead changes, UB led 75-68 after freshman guard Shannon Evans made the second of two free throws with 45 seconds to play in regulation. The Bulls were still in front, 77-74, with 5 seconds left when Jarryn Skeete of UB fouled the Jaspers’ Shane Richards on a three-point shot. Despite a UB timeout in an attempt to “ice” the shooter, Richards made all three shots to tie the score and the game went to overtime when Evans missed a last second jumper.

Manhattan never trailed in the overtime, although UB tied it at 81 on a three-point shot by Joshua Freelove.

A steal and basket by Rich Williams put Manhattan ahead, and after a missed dunk by Jarod Oldham of the Bulls and another miss by Freelove, RaShawn Stores of the Jaspers made the first of two free throws for the final point of the game.

Evans led UB with 20 points, including 13 for 15 at the foul line. Javon McCrea had 18 points and 11 rebounds and Freelove 17 points for the Bulls. Xavier Ford added 10 points including 8 of 10 at the line.

George Beamon led Manhattan with 22 points.

Two Manhattan players, Donovan Kates and starting point guard Michael Alvarado were ejected from the game for leaving the bench during an altercation with 4:45 left. Deyshonee Much of UB and Stores of the Jaspers each were assessed a technical foul and a personal for the incident.

Next for UB (4-4) is a noon home game against Binghamton on Monday.

In women’s basketball, Canisius lost its Metro Atlantic Athletic Conference opener, falling to Quinnipiac, 65-55, before 1,439 at the Koessler Center.

Jamie Ruttle had a double-double — 15 points and 11 rebounds — for the Griffs, and Jen Morabito added 11 points. Jasmine Martin led the Bobcats with 22, including 4 of 5 from three-point range.

The St. Bonaventure women (10-4), coming off wins over UB and Kent State, will complete their non-conference schedule at UNC-Greensboro (4-6) at noon today.