fixed bug with replacing NAs from merge data