to fix the issue when reloading home page