Why did my New York State TurboTax software switch my wife to the primary filer and made me secondary?

I was the primary filer on the Fed return and another state's return I filed. When I filed my New York State return, the software flipped me and my spouse as primary and secondary.