Updated rules to fix grid if columns are hidden.