fix the data table behavior