Fixes table layout in template