bug fix at main page