undefined var fix on stacks
Merge pull request #1024 from ExchangeCore/undefined-var

undefined var fix on stacks