fixed missing values warning with na.omit