Fixes some bugs in gadget library
Merge branch 'master' of github.com:sysdream/gadget-client