fixed wrong usage of &settings reference in lambdas