nameServer was blocking getMachine on the index instead of the number of vendingMachines