Fixed taking lambda by value