prevent scaling factor from being 0 when weights are integers.