Reintroduces missing variable. Fixes #1782