Fix resizing of table items