Gaussian weights in optimization. Correct an error on resolution rescaling.