hobbit beta 1.0 bugfix

fix some bugs
Merge pull request #2 from lijiakof/master

hobbit beta 1.0 bugfix