fix bug in init which caused callbacks to be called twice
build
Merge branch 'master' into gh-pages

* master:
  build
  fix bug in init which caused callbacks to be called twice