fix NaN issue in data