A modified solution of the lidar equation has been derived that develops the Klett algorithm as a stable form of inversion of the lidar equation and provides the reconstruction of the extinction coefficient profiles from laser sounding data. This solution allows for the small-angle scattering typical of oceanic waters. Inversion errors for the Klett and modified algorithms have been compared in a numerical lidar experiment for a medium with various model vertical profiles of the extinction coefficient.