fixed an issue w the indexes in NeuralNetworkOptimizer's getParameters() method