Fix bug where homepage only displayed once.