Moving expenses with multiple state returns

I moved three times to 3 different states last year. Moving expenses are entered at the Federal level and depending if your state allows it will flow through to your state return. However, Turbotax online decides to apply those moving expenses to the first state return. I cannot see how to allocate the moving expenses to the correct state as there are no questions in the forms that ask the date of the move (to tie to the dates in the individual states allocated move dates etc.). My return is CA, NY, MA; the legitimate expenses pertain to the NY->MA move, but end up on CA state return! The 3 tests for allowable expenses make no sense if the expense is filed in the CA return. It seems to have picked it because that's the order the W2 was processed. Does anyone know how you can get around this mis-allocation of a deduction in the Online version?