fix NNC outof bounds issue