Forgot the 'var' statement, causing variables to leak. (Bug #1592)