Topic: Audio drifting ?

Hi I have a Babyface and weird things are happening I am wondering if someone can explain if there are any settings in total mix or win 10 that can help with this .

I am rewire in 2 daws together . When in rewire mode I send midi from daw 1 to daw 2 and the audio from daw 2 comes back to daw 1 . Simple so far . The problem is when I record the audio back to daw 1 it drifts out of sync with the midi notes , this drifting can be anywhere from perfect to 50ms and it's random .

Please if you have any suggestions or a reason why this happens please tell me .