fix changing columns count in runtime