Reasons for the divergence of the profiles which have been reconstructed by solving the lidar equations are discussed. A stable algorithm for processing of multifrequency sounding of the atmosphere is proposed. The problem of estimating the optical parameters at the reference point is analyzed and a procedure for solving this problem is proposed. The possibilities of the procedure and algorithm are illustrated by numerical simulation .