fix bugs on homepage