KK vs flush on flop. Correct play?

PokerStars No-Limit Hold'em, $0.02 BB (7 handed) converter

Button ($1.46)
SB ($4.49)
Hero ($6.97)
UTG ($1.54)
MP1 ($1.76)
MP2 ($2.09)
CO ($1.73)

Preflop: Hero is BB with K, K.
1 fold, MP1 raises to $0.14, MP2 raises to $0.26, 3 folds, Hero raises to $0.8, MP1 calls $0.66, MP2 calls $0.54.

Flop: ($2.41) 7, 2, 9 (3 players)
Hero bets $1.34, MP1 calls $0.96 (All-In), MP2 calls $1.29 (All-In).

Turn: ($6) 9 (3 players, 2 all-in)

River: ($6) Q (3 players, 2 all-in)

Final Pot: $6
Main Pot: $5.29, between Hero, MP1 and MP2. > Pot won by MP1 ($5.29).
Pot 2: $0.66, between Hero and MP2. > Pot won by Hero ($0.66).
Pot 3: $0.04, returned to Hero.

Results in white below:
Hero has Kh Kd (two pair, kings and nines).
MP1 has Td Jd (flush, jack high).
MP2 has Jc Js (two pair, jacks and nines).
Outcome: MP1 wins $5.29. Hero wins $0.70.