W2 difference 2018 and 2019

I live in NJ and work in NY. 

When I file tax refund last year, section 1127 amount withheld  #14  and #19 local income tax "0" in W2.

I did not have 1127 form after tax return.

2019 W2 form showed  1127 amount #19 local income tax so I got 1127 form after filed.

I think I received little money from NY last year due to this reason.

Please give me advise