fix a bug about hiding homepage