An off-duty pilot riding in the cockpit of a Boeing 737 Max 8 fixed a malfunction during the second-to-the-last flight for the aircraft before it crashed into the Java Sea the next day, two people with knowledge of the investigation said in a Bloomberg report published Tuesday.