fixing empty stacks in partial kernels command