correcting Kidx loop summation in damping matrix