Remove NAs when applying threshold filter