fixed bug in data tables check