fixed data.table bug