fixed na.rm bug in percent_table