fix layout for tables.