fixed bug with let optimization strategy