It was a problem with the engine, not the airframe. The 787 ships with Rolls-Royce and GE engines - the GE equipped ones are fine. Boeing manufactures the planes, and then works with engine manufacturers to offer various options for powering them. The airlines choose which engines they'd like to install on their aircraft.
GE, for all of its faults as a corporation (the stock price is what, $9-something now?), makes very good jet engines.
GE, for all of its faults as a corporation (the stock price is what, $9-something now?), makes very good jet engines.