fixing bug in lambert interpolation