fix bug of unexpected global var declare #30