Fix self-referencing lambda in sync/pull.