fix grid tables