Bug in k-space diagonalzation! Don't know why?!