Fix bug when published on github.io