fix bugs
Merge branch 'master' into gh-pages