nasty bug in updates, computed the wrong dot product in the random product updates