Protect s:lambda_index from resetting