bug fix in lsd