main page bug fix