Live in PA and work in MD - still paid both PA and MD tax

I live in PA and work in MD.  I got  both MD and PA tax on the same wages. I will file a MD return to get a refund. But my turbotax is treating it as MD income. What am I doing wrong to get the full refund from MD?