Bug fix

Now correctly re-formats tables.