Fixed bug in NeuralNetwork::get