How do I divide nonresident earned income divided between two states

I live in NYS but have earned income as a consultant is MA and CA.    When I enter my W2s for the business, Turbotax allocates all of the income to MA with none to CA.    How do I correct this?