added transaction around node lookup to fix error