Fix plain_to_table