bugfix: missing 'var' declaration