Stop leaking "smart" variable

Hello.  I'm not sure why this isn't showing up in the sequelize test suite, but it looks like 'smart' gets leaked, and this should fix it.