Weight vector averaging bugfix.