The firm says it uncovered a problem with its 737 Max jets a year before the first fatal crash.