fixed empty cell bug when cal_all_kernels