fix an issue for main page