fix issue with using map in table_data