fixed undefined var
0.1.7