Remove undefined value in data.