Fixed bug in Lam to pass all test in LamMain