fixing some bugs on deploy
Merge branch 'master' into gh-pages

* master:
  fixing some bugs on deploy