Fixed things for Hopfield problem.