Fix: A notice is issued if the weight target is not defined