Last minute rescue for Highlands funding