Bugs fixed in the euclidean loss layer.