Fixed mistake in wmeaned error assignment