Rules not working on a camera

I have 2 cameras A and B. I have it set up that when Camera A has a motion camera B starts recording also. And Vice Versa. Camera A will stop recording when Camera B is triggered randomly. It just stops until I restart Camera A. Then it works normally. I reformatted the SD card since I thought it was that and also the firmware is up to date.