Thirds survive comeback to win