Fixes table layouts