Fixed a duplicate var declaration that came up based on recent refactor.