Changed -1 to NaN