You will need to remap the motors using the resource command in cli.
Type resource, enter. Copy the results and paste into a text file, swap the motors.
1 becomes 4, 2 becomes 3, 3 becomes 2 and 4 becomes 1.
resource MOTOR 1 B08
resource MOTOR 2 B09
resource MOTOR 3 A03
resource MOTOR 4 A02
resource MOTOR 1 A02
resource MOTOR 2 A03
resource MOTOR 3 B09
resource MOTOR 4 B08
Alter the text file as needed and copy and paste it into cli, hit enter, type save and enter again. After a reboot check in cli that the resources are as you set them and all should work properly.