compile fix: add missing var declaration