Fix flip-flop