Wiring Help - 3 way

Gen 2 Red Dimmer

Have a new construction house, and my wiring is almost exactly like this picture.

Except that on the 2nd switch the black and white wire is switched. The white wire is on the common. Any ideas? If I unhook the black wire on the 2nd switch, the switch still works.

Main switch if needed:

It’s probably okay. I’d have to see the patch at the light to see how they crossed over at the fixture.