fixed bugs in lcompileLet