Bug fix in LSD.