flip flop measure part bug fixed