fixed another missing var declaration