Corrected mistake in preconditions for negative weight updating.