fix error when drawing numeric plots with NAs