Fixed some bugs when columns are hidden