Replaced flip flop with built in one. Structual waveform is now correct.