for let with when fix