Fixed a bug which caused the network to act nondeterministic.