fixed api var init
Merge pull request #14 from olivier-squid/master

fixed api var init