bug fix
update api call and fix
Merge pull request #109 from glenwks/master

update api call and fix