Airbus SE won a contract from Kuwait Airways for its A330-800 aircraft model, securing a vital deal for the struggling program at the expense of a reduced order for the jet’s bigger sibling.

Kuwait Air agreed to buy eight A330neos while paring a commitment for the larger A350 from 10 planes to five, according to a statement Monday.

The order from the Persian Gulf-carrier secures a first customer for the smaller variant of the re-engined A330 after Hawaiian Airlines Inc.—the only previous buyer—scrapped a purchase agreement earlier this year and switched to a fleet of Boeing Co. 787 Dreamliners.

Airbus has been battling to drum up customers for the A330neo as Boeing seeks to undercut the program in order to sell more 787s and make space for a new middle-of-the-market model nicknamed the 797. The European company has garnered 224 orders for its plane, all involving the larger -900 version that’s due to enter service in coming weeks.

Kuwait Airways will take its A330s from 2019. The fleet plan now includes the eight A330neos and five A350s, plus 10 Boeing 777s and 15 Airbus A320neo narrow-bodies.