The high output on line 375 and the high output from inverter 390 causes the output of AND gate 388 to go high.
OR gate 394 provides a high signal at its output to OR gate 396 and the reset input of flip-flop 398.