Change the condition of a loop

Update the processing of nvpArray to include the last element.