fix undeclared error var
Merge branch 'master' of http://github.com/leapon/leapbase