Fix lambda capture