Avoid numerical problems with missing weights on non-linear cases.