updated lsm lib (fixing bug)