I lived in/worked in NY in 2017. Why does my 2017's W-2 have NJ state copy with Box 16 contains some wage like 1/4 of total wages, Box 17 is blank?

I lived in NJ in 2016 and worked in NY in 2017. Starting July 2016, I moved to NY. So I lived/worked in NY in the whole 2017. Why does my 2017's W-2 have NJ state copy with Box 16 contains some wage like 1/4 of total wages, Box 17 is blank?