fixed a bug in the toy mlcd... numpy.array has unexpected behavior for elementwise assignment