Fixed initialization issue with knodule indices