fix some bugs
Merge branch 'master' into gh-pages

* master:
  fix some bugs