Smoothing of weights in the Bernstein approximation problem