Check aspect ratio to find invalid tables, tidy things up.