fixing flipflop using docid0