The Maryfield Park side had plenty of chances but had to come from behind to record a 2-1 win in Kirkcudbright.