State Tax Owed Discrepancy

I worked in Washington DC throughout the entire 2019 year. I lived in Maryland from January to mid-August and in Virginia from mid-August to the end of the year. My job withheld DC state income taxes apparently, (box 15 says DCWH in the state field.) Now the system is saying I owe a lot in taxes to both MD and VA when in actuality the sum of the amounts it says I owe the two states is the same as the amount of DC income taxes withheld (Box 17). What should I do