Bracket cleanup + failed to update var ref.