Bug fix in lsd