bugfix: missing var declaration