fix main page bug