Resident of PA. Worked in DE and NJ during the year. DE and NJ taxes are calculated by Turbo Tax on the total income instead of the statewise AGI. How can I fix it?

The DE tax is being calculated on the total income from both DE and NJ states. Same with NJ tax is being calculated on the total income.