fix a bug on homepage