Fix bug to deal with tabulation of all NAs in updateAttributes