I've already removed D2 but no change. Could it be that the IC4 circuit is generating problems in IC2? reading about the PT2399 it turns out that Pin6 is the one that controls the delay, maybe if I remove R37 I can isolate that part of the circuit and see if it affects the output of IC2