Firms fix their financial and operational woes and prepare to resume cash returns to shareholders