St Johnstone manager Tommy Wright felt his side deserved more from their 2-1 home defeat by St Mirren and urged his players to cut out costly mistakes.
A late strike by Adam Drury sealed all three points for the Buddies after Steven Anderson's header had cancelled out Jason Naismith's opener.
"The manner that we gave away the goal, when you're at 1-1 with three or four minutes to go," said Wright.
"We left ourselves open, and they countered and got themselves a winner."
The defeat keeps St Johnstone in the bottom half of the Scottish Premiership table on nine points, one behind Partick Thistle and Dundee, but Wright insists his players still performed well, particularly in the second half when the Perth side drew level.
"We didn't start the game particularly well," said Wright. "It's a problem we're having at the minute, gifting goals - and we gifted a great strike to Naismith.
"We probably had the best chances in the first half, but there was a goal disallowed.
"We weren't happy at half time because we didn't pass it well enough. but in the second half we totally controlled the game."
Wright believes the second-half performance was enough for his side to win the game, but expects his players to start cutting out major errors that are costing the club results.
"We conceded off a counter-attack last week against Dundee United, and we've been getting punished for small mistakes," said Wright.
"We should deal with it better and I'm gutted for the players, because I thought in the second half we were much better and we controlled the game.
"There only looked like there was going to be one winner, but football doesn't work like that."